﻿<div id="content" class="hfeed">
    <div class="page hentry entry">
        <div class="post-wrap">
            <div class="entry-content">

                <h2>Xem thông tin</h2>
                <dl>
                		<dt><?php echo __('Mobile Model Id'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['mobile_model_id']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Model Code'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['model_code']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Image Url'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['image_url']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Is Active'); ?></dt>
                		<dt><?php echo __('Price'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['price']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Discount'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['discount']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Retail Price'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['retail_price']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Warranty Month'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['warranty_month']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Mobile Base'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['MobileBase']['mobile_base_name'], array('controller' => 'mobile_bases', 'action' => 'view', $mobileModel['MobileBase']['mobile_base_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Mobile Name'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['mobile_name']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Mobile Dimension'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['mobile_dimension']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Mobile Weight'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['mobile_weight']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Screen Type'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['ScreenType']['screen_type_name'], array('controller' => 'screen_types', 'action' => 'view', $mobileModel['ScreenType']['screen_type_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Screen Color Count'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['screen_color_count']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Screen Standard'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['ScreenStandard']['screen_standard_name'], array('controller' => 'screen_standards', 'action' => 'view', $mobileModel['ScreenStandard']['screen_standard_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Screen Resolution'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['ScreenResolution']['screen_resolution_value'], array('controller' => 'screen_resolutions', 'action' => 'view', $mobileModel['ScreenResolution']['screen_resolution_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Screen Size'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['ScreenSize']['screen_size_value'], array('controller' => 'screen_sizes', 'action' => 'view', $mobileModel['ScreenSize']['screen_size_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Touch Description'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['touch_description']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Camera Feature'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['camera_feature']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Cpu Speed'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['cpu_speed']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Chipset'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['Chipset']['chipset_name'], array('controller' => 'chipsets', 'action' => 'view', $mobileModel['Chipset']['chipset_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Gpus'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['Gpus']['gpu_name'], array('controller' => 'gpuses', 'action' => 'view', $mobileModel['Gpus']['gpus_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Ram'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['ram']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Internal Storage'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['internal_storage']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Storage Up To'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['storage_up_to']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Card Slot Type'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['CardSlotType']['card_slot_type_name'], array('controller' => 'card_slot_types', 'action' => 'view', $mobileModel['CardSlotType']['card_slot_type_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Battery Type'); ?></dt>
                		<dd>
                			<?php echo $this->Html->link($mobileModel['BatteryType']['battery_type_name'], array('controller' => 'battery_types', 'action' => 'view', $mobileModel['BatteryType']['battery_type_id'])); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Battery Capacity'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['battery_capacity']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Battery Removable'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['battery_removable']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Sim Count'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['sim_count']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Three Description'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['three_description']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Four Description'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['four_description']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Gps Description'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['gps_description']); ?>
                			&nbsp;
                		</dd>
                		<dt><?php echo __('Bluetooth Description'); ?></dt>
                		<dd>
                			<?php echo h($mobileModel['MobileModel']['bluetooth_description']); ?>
                			&nbsp;
                		</dd>
                	</dl>

                <div class="related">
                	<h3><?php echo __('Related Products'); ?></h3>
                	<?php if (!empty($mobileModel['Product'])): ?>
                	<table cellpadding = "0" cellspacing = "0">
                	<tr>
                		<th><?php echo __('Product Id'); ?></th>
                		<th><?php echo __('Product Code'); ?></th>
                		<th><?php echo __('Warehouse Id'); ?></th>
                		<th><?php echo __('Purchase Detail Id'); ?></th>
                		<th><?php echo __('Sales Detail Id'); ?></th>
                		<th><?php echo __('Mobile Model Id'); ?></th>
                		<th><?php echo __('Serial Number'); ?></th>
                		<th class="actions"><?php echo __('Actions'); ?></th>
                	</tr>
                	<?php foreach ($mobileModel['Product'] as $product): ?>
                		<tr>
                			<td><?php echo $product['product_id']; ?></td>
                			<td><?php echo $product['product_code']; ?></td>
                			<td><?php echo $product['warehouse_id']; ?></td>
                			<td><?php echo $product['purchase_detail_id']; ?></td>
                			<td><?php echo $product['sales_detail_id']; ?></td>
                			<td><?php echo $product['mobile_model_id']; ?></td>
                			<td><?php echo $product['serial_number']; ?></td>
                			<td class="actions">
                				<?php echo $this->Html->link(__('View'), array('controller' => 'products', 'action' => 'view', $product['product_id'])); ?>
                				<?php echo $this->Html->link(__('Edit'), array('controller' => 'products', 'action' => 'edit', $product['product_id'])); ?>
                				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'products', 'action' => 'delete', $product['product_id']), array(), __('Are you sure you want to delete # %s?', $product['product_id'])); ?>
                			</td>
                		</tr>
                	<?php endforeach; ?>
                	</table>
                <?php endif; ?>

                	<div class="actions">
                		<ul>
                			<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
                		</ul>
                	</div>
                </div>
                <div class="related">
                	<h2><?php echo __('Related Purchase Details'); ?></h2>
                	<?php if (!empty($mobileModel['PurchaseDetail'])): ?>
                	<table cellpadding = "0" cellspacing = "0">
                	<tr>
                		<th><?php echo __('Purchase Detail Id'); ?></th>
                		<th><?php echo __('Purchase Id'); ?></th>
                		<th><?php echo __('Mobile Model Id'); ?></th>
                		<th><?php echo __('Quantity'); ?></th>
                		<th><?php echo __('Price'); ?></th>
                		<th><?php echo __('Total'); ?></th>
                		<th class="actions"><?php echo __('Actions'); ?></th>
                	</tr>
                	<?php foreach ($mobileModel['PurchaseDetail'] as $purchaseDetail): ?>
                		<tr>
                			<td><?php echo $purchaseDetail['purchase_detail_id']; ?></td>
                			<td><?php echo $purchaseDetail['purchase_id']; ?></td>
                			<td><?php echo $purchaseDetail['mobile_model_id']; ?></td>
                			<td><?php echo $purchaseDetail['quantity']; ?></td>
                			<td><?php echo $purchaseDetail['price']; ?></td>
                			<td><?php echo $purchaseDetail['total']; ?></td>
                			<td class="actions">
                				<?php echo $this->Html->link(__('View'), array('controller' => 'purchase_details', 'action' => 'view', $purchaseDetail['purchase_detail_id'])); ?>
                				<?php echo $this->Html->link(__('Edit'), array('controller' => 'purchase_details', 'action' => 'edit', $purchaseDetail['purchase_detail_id'])); ?>
                				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'purchase_details', 'action' => 'delete', $purchaseDetail['purchase_detail_id']), array(), __('Are you sure you want to delete # %s?', $purchaseDetail['purchase_detail_id'])); ?>
                			</td>
                		</tr>
                	<?php endforeach; ?>
                	</table>
                <?php endif; ?>

                	<div class="actions">
                		<ul>
                			<li><?php echo $this->Html->link(__('New Purchase Detail'), array('controller' => 'purchase_details', 'action' => 'add')); ?> </li>
                		</ul>
                	</div>
                </div>
                <div class="related">
                	<h2><?php echo __('Related Sale Details'); ?></h2>
                	<?php if (!empty($mobileModel['SaleDetail'])): ?>
                	<table cellpadding = "0" cellspacing = "0">
                	<tr>
                		<th><?php echo __('Sale Detail Id'); ?></th>
                		<th><?php echo __('Sale Id'); ?></th>
                		<th><?php echo __('Mobile Model Id'); ?></th>
                		<th><?php echo __('Quantity'); ?></th>
                		<th><?php echo __('Price'); ?></th>
                		<th><?php echo __('Discount For Item'); ?></th>
                		<th><?php echo __('Retail Price'); ?></th>
                		<th><?php echo __('Total'); ?></th>
                		<th class="actions"><?php echo __('Actions'); ?></th>
                	</tr>
                	<?php foreach ($mobileModel['SaleDetail'] as $saleDetail): ?>
                		<tr>
                			<td><?php echo $saleDetail['sale_detail_id']; ?></td>
                			<td><?php echo $saleDetail['sale_id']; ?></td>
                			<td><?php echo $saleDetail['mobile_model_id']; ?></td>
                			<td><?php echo $saleDetail['quantity']; ?></td>
                			<td><?php echo $saleDetail['price']; ?></td>
                			<td><?php echo $saleDetail['discount_for_item']; ?></td>
                			<td><?php echo $saleDetail['retail_price']; ?></td>
                			<td><?php echo $saleDetail['total']; ?></td>
                			<td class="actions">
                				<?php echo $this->Html->link(__('View'), array('controller' => 'sale_details', 'action' => 'view', $saleDetail['sale_detail_id'])); ?>
                				<?php echo $this->Html->link(__('Edit'), array('controller' => 'sale_details', 'action' => 'edit', $saleDetail['sale_detail_id'])); ?>
                				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'sale_details', 'action' => 'delete', $saleDetail['sale_detail_id']), array(), __('Are you sure you want to delete # %s?', $saleDetail['sale_detail_id'])); ?>
                			</td>
                		</tr>
                	<?php endforeach; ?>
                	</table>
                <?php endif; ?>

                	<div class="actions">
                		<ul>
                			<li><?php echo $this->Html->link(__('New Sale Detail'), array('controller' => 'sale_details', 'action' => 'add')); ?> </li>
                		</ul>
                	</div>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="sidebar" class="sidebar">
    <div class="widget">
        <h4>Chức năng</h4>
        <ul class="menu">
            <li><?php echo $this->Html->link(__('Edit Chipset'), array('action' => 'edit', $chipset['Chipset']['chipset_id'])); ?> </li>
            <li><?php echo $this->Form->postLink(__('Delete Chipset'), array('action' => 'delete', $chipset['Chipset']['chipset_id']), array(), __('Are you sure you want to delete # %s?', $chipset['Chipset']['chipset_id'])); ?> </li>
            <li><?php echo $this->Html->link(__('List Chipsets'), array('action' => 'index')); ?> </li>
            <li><?php echo $this->Html->link(__('New Chipset'), array('action' => 'add')); ?> </li>
            <li><?php echo $this->Html->link(__('List Mobile Models'), array('controller' => 'mobile_models', 'action' => 'index')); ?> </li>
            <li><?php echo $this->Html->link(__('New Mobile Model'), array('controller' => 'mobile_models', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
